export default {
	install(Vue) {
		//保存localStroge
		Vue.prototype.setLocalStroge = function (name, arr) {
			window.localStorage.setItem(name, JSON.stringify(arr));
		};
		Vue.prototype.getLocalStroge = function (name) {
			return JSON.parse(window.localStorage.getItem(name));
		};
		Vue.prototype.delLocalStroge = function (name) {
			window.localStorage.removeItem(name);
		};
	},
};
